//
//  ViewController.m
//  AlertViewControllerManager
//
//  Created by mymac on 2017/2/10.
//  Copyright © 2017年 Fujian first time iot technology investment co., LTD. All rights reserved.
//

#import "ViewController.h"
#import "AlertManager.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    
    UIButton *testButtn = [UIButton buttonWithType:UIButtonTypeCustom];
    testButtn.frame =CGRectMake(100, 100, 100, 100);
    testButtn.backgroundColor = [UIColor greenColor];
    [testButtn addTarget:self action:@selector(clickBtn) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:testButtn];
    
    
}

- (void)clickBtn {
    [[AlertManager sharedManager]alert:TitleAndTwoButtonsAlertStyle withPrepare:self title:@"温馨提醒" content:@"你还有10分钟下班" theFirstButton:^{
        NSLog(@"行，我知道了");
    } theSecondButton:^{
        NSLog(@"不，我还要工作");

    }];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
